package com.sscw.task.dao;

import com.guaike.core.mybatis.plugins.BaseDAO;
import com.sscw.task.entity.GRecordMqttMessagePO;
import com.sscw.task.mapper.GRecordMqttMessageExtMapper;
import com.sscw.task.mapper.GRecordMqttMessageMapper;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Repository;

@Repository
@AllArgsConstructor
public class GRecordMqttMessageDAO extends BaseDAO<GRecordMqttMessageMapper, GRecordMqttMessagePO> {

    private final GRecordMqttMessageExtMapper gRecordMqttMessageExtMapper;

    public int deleteBeforeTwoDaysMessage() {
        return gRecordMqttMessageExtMapper.deleteBeforeTwoDaysMessage();
    }
}
